package com.jiaai.shop.store.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.jiaai.shop.store.entity.SGoods;
import com.jiaai.shop.store.mapper.SGoodsMapper;
import com.jiaai.shop.store.service.ISGoodsService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.jiaai.shop.util.PageUtil;
import com.jiaai.wgj.common.page.RPage;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.mapper.Wrapper;


/**
 * <p>
 * 商品图 服务实现类
 * </p>
 *
 * @author
 * @since 2018-04-01
 */
@Service
public class SGoodsServiceImpl extends ServiceImpl<SGoodsMapper, SGoods> implements ISGoodsService {
    @Override
    public RPage findGoodsAll(Page page, Wrapper wrapper) {
        page.setRecords(baseMapper.findGoodsAll(page,wrapper));
        return new PageUtil().convertRpage(page);
    }

}
